<?php

namespace app\adminmini\model;

use think\facade\Db;

class Seat extends BaseModel
{
    protected $name = "customer_seat";

    public function getInfo($id)
    {
        $info = Db::name('customer_seat')->where('id', $id)->find();
        $happy = Db::name('mini_happy')->where('id', $info['happy_id'])->find();


        $info['haypp_name'] = $happy['name'];
        $info['num'] = $happy['num'];





        return $info;
    }





}